package com.woniuxy.school.dietary.from;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.util.List;
import java.util.Set;

@Data
@ApiModel(description = "添加订单使用的模型对象")
public class AddOrderFrom {
    @NotEmpty(message = "菜品ID不能为空")
    private Long[] foodId;
    @NotNull(message = "电话id不能为空")
    @ApiModelProperty(value = "电话")
    private String orderPhone;
    @NotNull(message = "地址不能为空")
    @ApiModelProperty(value = "地址")
    private String address;
    @NotNull(message = "姓名不能为空")
    @ApiModelProperty(value = "姓名")
    private String receiveName;
    @ApiModelProperty(value = "商家id")
    @Positive(message = "商家id必须为正数")
    @NotNull(message = "商家id不能为空")
    private Long storeId;




}
